package com.skin;

import java.util.UUID;

import android.graphics.drawable.Drawable;

public class SkinInfo {
	public final UUID uuid;
	public final String name;
	public final Drawable icon;
	public final Version version;
	public final Author[] authors;

	SkinInfo(UUID uuid, String name, Drawable icon, Version version,
			Author[] authors) {
		this.uuid = uuid;
		this.name = name;
		this.icon = icon;
		this.version = version;
		this.authors = authors;
	}

	public static class Version {
		public final String name;
		public final int code;
		public final int min;
		public final int max;

		Version(String name, int code) {
			this(name, code, 0, Integer.MAX_VALUE);
		}

		Version(String name, int code, int min, int max) {
			this.name = name;
			this.code = code;
			this.min = min;
			this.max = max;
		}
	}

	public static class Author {
		public final String name;
		public final String company;
		public final String email;

		Author(String name, String company, String email) {
			this.name = name;
			this.company = company;
			this.email = email;
		}
	}
}
